using Microsoft.AspNetCore.Mvc;
using Project_Schedule.Domain.Receptionist.com.core.dto;
using Project_Schedule.Domain.Receptionist.com.core.Interface;
using Project_Schedule.Domain.Request;

namespace Project_Schedule.Domain.Receptionist.com.core.Controller;

[ApiController]
[Route("api/[controller]/[action]")]
public class System_RegisterController : ControllerBase
{
    private readonly ISystemRegister _systemRegister;

    public System_RegisterController(ISystemRegister systemRegister)
    {
        _systemRegister = systemRegister;
    }

    [HttpPost]
    public async Task<JRequest> Register(RegisterUser dto)
    {
        return await _systemRegister.Register_Schedule_User(dto);
    }
}